package com.menghanjun.mhjresourcesharing.entity;

import java.time.LocalDateTime;
import java.io.Serializable;
import java.util.Date;

import com.fasterxml.jackson.databind.annotation.JsonSerialize;
import com.fasterxml.jackson.databind.ser.std.ToStringSerializer;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

/**
 * <p>
 * 
 * </p>
 *
 * @author menghanjun
 * @since 2024-04-19
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
public class TUser implements Serializable {

    private static final long serialVersionUID = 1L;

    /**
     * userID
     */
    @JsonSerialize(using = ToStringSerializer.class)
    private Long userId;

    /**
     * user名称
     */
    private String userName;

    /**
     * 密码
     */
    private String password;

    /**
     * 邮箱
     */
    private String email;

    /**
     * 使用状态N或Y
     */
    private String userStatus;

    /**
     * 角色0管理员，1普通用户
     */
    private Integer role;

    /**
     * 到期时间
     */
    private Date expiresdAt;

    /**
     * 注册时间
     */
    private Date createdAt;


}
